package cn.humaohua.study.yanmo_design_pattern.ch13.v4;

public class HotCook implements CookApi, Runnable {
    // 姓名
    private String name;

    public HotCook(String name) {
        super();
        this.name = name;
    }

    @Override
    public void cook(int tableNum, String name) {
        System.out.println("热菜厨师 正在【为桌号" + tableNum + "】做菜:" + name);
    }

    @Override
    public void run() {
        while (true) {

        }
    }

}
